import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 * 微信公众号推送配置*/
// 创建
export const spinNotificationMessageConfigCreate = (data) => postRequest('/spin/notification-message-config/create', data);

// 更新
export const spinNotificationMessageConfigUpdate = (data) => putRequest('/spin/notification-message-config/update', data);

// 删除
export const spinNotificationMessageConfigDelete = (params) => deleteRequest('/spin/notification-message-config/delete', params);

// 获得
export const spinNotificationMessageConfigGet = (params) => getRequest('/spin/notification-message-config/get', params);

// 分页
export const spinNotificationMessageConfigPage = (params) => getRequest('/spin/notification-message-config/page', params);

// 导出 Excel
export const spinNotificationMessageConfigExportExcel = (params) => getRequest('/spin/notification-message-config/export-excel', params);
export const spinNotificationMessageConfigUpdateAuditState = (data) => postRequest('/spin/notification-message-config/update-audit-state', data);

export const spinNotificationMessageConfigCount = (params) => getRequest('/spin/notification-message-config/count', params);
export const spinNotificationMessageConfigWeeksCount = (params) => getRequest('/spin/notification-message-config/weeks-count', params);

// 通知类型枚举
export const spinNotificationMessageConfigGetType = (params) => getRequest('/spin/notification-message-config/get-type', params);
